﻿@model XZen.Blogger.Magazine
@{
    var item = Model;
    <div class="col-xs-3">
        <div class="book panel">
            <div class="row">
                <div class="col-xs-6">
                    <a href="@Url.Action("Edit", "Magazine", new { id = item.ID })"  >
                        <img src="@item.CoverPageUrl" class="img-icon" />
                    </a>

                </div>
                <div class="col-xs-6">

                    <b>Title:</b>   @Html.DisplayFor(modelItem => item.Title)
                    <br />
                    <b>Category:</b>   @Html.DisplayFor(modelItem => item.Category)

                </div>
            </div>
            <div class="line">
                <b>Description: </b>@(Model.Body.Length > 250 ? Model.Body.Substring(0, 249) : Model.Body)
                 @Html.ActionLink("BindBook","BindBook",new { id=item.ID}, null)
            </div>
            <div class="line">
                <b>Action: </b><span class="label">
                    @Html.ActionLink("Delete", "Delete", new { id = item.ID }) |  @Html.ActionLink("Edit", "Edit", new { id = item.ID })
                </span>
            </div>
        </div>
    </div>
}

